﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MCPlatform.UI.Controls.Views
{
    /// <summary>
    /// MiniLed.xaml 的交互逻辑
    /// </summary>
    public partial class MiniLed : UserControl
    {
        public MiniLed()
        {
            InitializeComponent();
        }

        public static readonly DependencyProperty IsOnProperty = DependencyProperty.Register(
           "IsOn", typeof(bool), typeof(MiniLed), new PropertyMetadata(default));

        public static readonly DependencyProperty OnColorProperty = DependencyProperty.Register(
            "OnColor", typeof(Brush), typeof(MiniLed), new PropertyMetadata(default));

        public static readonly DependencyProperty OffColorProperty = DependencyProperty.Register(
            "OffColor", typeof(Brush), typeof(MiniLed), new PropertyMetadata(default));






        public bool IsOn
        {
            get { return (bool)GetValue(IsOnProperty); }
            set { SetValue(IsOnProperty, value); }
        }

        public Brush OnColor
        {
            get { return (Brush)GetValue(OnColorProperty); }
            set { SetValue(OnColorProperty, value); }
        }

        public Brush OffColor
        {
            get { return (Brush)GetValue(OffColorProperty); }
            set { SetValue(OffColorProperty, value); }
        }
    }
}
